package com.jiankangjin.appspos.responsparam.object;

import com.jiankangjin.common.json.jackson.JSONUtil;

/**
 * 本项目调用交易系统接口时，传出Diag的对象JSON封装
 */
public class ResponseDiag {
	/** 医疗机构编号 */
	private String h_id;
	/** 医疗机构名称 */
	private String h_name;
	/** 诊断代码 */
	private String diag_code;
	/** 诊断名称 */
	private String diag_name;
	/** 诊断说明 */
	private String diag_comment;
	/** get  */
	public String getH_id() {
		return h_id;
	}
	/** set  */
	public void setH_id(String h_id) {
		this.h_id = h_id;
	}
	/** get  */
	public String getH_name() {
		return h_name;
	}
	/** set  */
	public void setH_name(String h_name) {
		this.h_name = h_name;
	}
	/** get  */
	public String getDiag_code() {
		return diag_code;
	}
	/** set  */
	public void setDiag_code(String diag_code) {
		this.diag_code = diag_code;
	}
	/** get  */
	public String getDiag_name() {
		return diag_name;
	}
	/** set  */
	public void setDiag_name(String diag_name) {
		this.diag_name = diag_name;
	}
	/** get  */
	public String getDiag_comment() {
		return diag_comment;
	}
	/** set  */
	public void setDiag_comment(String diag_comment) {
		this.diag_comment = diag_comment;
	}
	public ResponseDiag(String h_id, String h_name, String diag_code, String diag_name,
			String diag_comment) {
		super();
		this.h_id = h_id;
		this.h_name = h_name;
		this.diag_code = diag_code;
		this.diag_name = diag_name;
		this.diag_comment = diag_comment;
	}
	/**
	 * 转为JSON串
	 */
	@Override
	public String toString() {
		String str = super.toString();
		if(null != str && !"".equals(str)) {
			return JSONUtil.toJSON(this, this.getClass());
		} else {
			return "";
		}
	}
	
}
